<template>
    <div id="app">
        <div id="sidebar">
            <ul class="nav">
                <router-link class="nav-item" tag="li" to="/">Home</router-link>

                <router-link class="nav-item" tag="li" to="/print">About</router-link>
            </ul>
        </div>
        <div class="main">
            <router-view />
        </div>
    </div>
</template>

<style lang="scss">
body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    line-height: 1.66;
    font-size: 14px;
    color: #3f3f3f;
    & * {
        box-sizing: inherit;
    }
}
ol,
ul {
    margin: 0;
}
p {
    margin: 0;
    padding: 0;
    line-height: 1.66;
}
#app {
    display: flex;
    height: 100vh;
}
#sidebar {
    flex: 0 0 240px;
    background-color: #f6f6f6;
    height: 100vh;
    overflow-y: auto;
}
.main {
    flex: 1 0 calc(100vw - 240px);
    padding: 24px;
    height: 100vh;
    overflow-y: auto;
}

.nav {
    padding: 0;
    display: flex;
    flex-direction: column;
    list-style: none;
    &-item {
        font-weight: bold;
        color: #2c3e50;
        line-height: 2.6em;
        padding: 0 20px;
        &.router-link-exact-active {
            color: #42b983;
        }
    }
}
</style>
